#{extends 'main.html' /}
#{set title:'CoolSoft- RoleRequests' /}

<body>
<h2>Requests<h2/><hr/>
<br></br>
#{list items:users, as:'user'}
    User:
        ${user.userName}
    <br>
    #{list items:roles, as:'role'}
    Role:
    ${role.title}
    <br>
    #{form @UserRoleProjects.AcceptRejectRoleRequests(projectId,role.getEntityId(),user.getEntityId(),accepted)}
    <input type="radio" name="accepted" value="true" />accept
    
    <br>
    
    <input type="radio" name="accepted" value="false" />reject
    <br>
    <input type="submit" value="Respond" /> 
    <br>
    <br>
#{/form}
#{/list}
#{/list}
    <br>
</body>